#!/usr/bin/python
# Ubuntu Systems Management
# by William Edwards
# Version 0.01
# Requires SSH, nmap, sqlite3, python-pexpect, and awk

### Modules
# Built-in modules
import os # used to execute system commands
import getpass # used to hide plaintext passwords
import pexpect # used to pass SSH credentials

# Ubuntu Systems Management Modules
import check_os

def main():
    ## System Checks ##
    print "\033[1;34mPerforming system checks...\033[0m"
    # Opens the check_os.py component to verify OS. This variable will also be used to determine
    # what commands are used to launch external applications like nmap and scp.
    ostype = check_os.ostype()
    # This opens the check_os.py component and runs the nmap check function. It will test to see
    # if nmap is installed and uses the ostype variable to determine if it's going to check
    # a Windows system or Linux system.
    check_os.nmap(ostype)
    # This uses the pexpect check function in check_os.py to determine if pexpect is installed, 
    # which is required to pass credentials through SSH.
    check_os.pexpect(ostype)
    # This uses the ssh check function to ensure that either SSH is installed for Linux systems
    # or Putty is available for Windows systems.
    check_os.ssh(ostype)

if __name__ == '__main__':
    main()